package com.fary.mapper;

import com.fary.base.BaseMapper;
import com.fary.po.MyRole;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface RoleMapper extends BaseMapper<MyRole> {

    @Select("SELECT r.role_id,r.role_name,r.data_scope,r.description,r.create_time,r.update_time FROM my_role r WHERE r.role_id = #{roleId}")
    MyRole getRoleById(Integer roleId);
}
